﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Toulr.Util.Ioc;
using Toulr.Services;
using Toulr.Domains.System;

public partial class WebUI_Shop_AddShopHome : CommPageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack)
        {
            string data = "?n=" + Request["ShopName"].ToString();
            Response.Redirect(PageHelper.Url("/webui/shop/AddShop.aspx") + data);
        }
        msg1.Text = "In Page_load<br />";
    }
    
    [AjaxPro.AjaxMethod]
    public string[] GetFindResult(string shopName)
    {
        string[] arrayTest = new string[shopName.Length];
        if (shopName=="TeckyLee")
        {
            return new string[] { };
        }
        for (int i = 0; i < arrayTest.Length; i++)
        {
            arrayTest[i] = shopName + "_" + i;
        }
        return arrayTest;
    }

    public string url { get; set; }
    protected void myList_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (myList.SelectedIndex > 0)
        {
            msg1.Text += "Hi" + customername.Text;
            msg1.Text += myList.SelectedIndex;
        }
    }
}